#include <iostream>
#include "lbsqlite.h"
#include <windows.h>
#define print std::cout
#define end std::endl
int main()
{
      if(936==GetConsoleOutputCP())        //--判断当前系统是否为UTF-8 
       {                                  //#define CP_UTF8 65001 utf-8   //SetConsoleOutputCP(936); GBK
         SetConsoleOutputCP(CP_UTF8); 
       }
//  typedef LBsqlite *(*dllFun)();
//   HINSTANCE mod=LoadLibrary("lbsqlite32.dll");
//   if(!mod)
//     print<<"载入DLL错误！"<<end;
//   else
//     print<<"载入DLL成功！"<<end;
//     //typedef char* (*PFunction)(int);
//    //using dllFun=LBsqlite *(*)();
   
//      dllFun Fun=(dllFun) GetProcAddress(mod,"lbinit@0");
//      auto p=Fun();
//      p->open("test.db");
//      p->execSql("select * from COMPANY where id>0");
//     print<< p->execValue(1)<<end;
//     FreeLibrary(mod);
  

}